import {createRouter, createWebHashHistory} from 'vue-router'
import Home from '../components/Home.vue'
import List from '../components/List.vue'
import Add from '../components/Add.vue'
import Update from '../components/Update.vue'
import showDetail from '../components/showDetail.vue'
import ShowDetail from '../components/showDetail.vue'
import ShowDetail2 from '../components/showDetail2.vue'

const router = createRouter({
    history:createWebHashHistory(),
    routes:[
        {
            path: "/",
            component: Home
        },
        {
            path: "/showDetail/:id/:language",
            component: ShowDetail
        },
        {
            path: "/showDetail2",
            component: ShowDetail2
        },
        {
            path: "/home",
            component: Home
        },
        {
            path: "/list",
            component: List
        },
        {
            path: "/add",
            component: Add
        },
        ,
        {
            path: "/update",
            component: Update
        }
    ]
})

export default router